﻿/**
 *
 * @title: Basic MVC Framework, Controller Class
  * @author: 
 * @license: 
 * @updated: 29/07/2010
 *
 * @version	1.0 
 */

package com.mediagallary.controller {

	import com.mediagallary.model.*;
	import com.mediagallary.controller.*;
	//import com.mediagallary.view.*;
	import flash.events.EventDispatcher;
	import flash.events.Event;
	
	/**
	 * Basic Controller class in Model/View/Controller triad.
	 */
	public class GallaryController extends Controller {

		/**
		 * Constructor
		 *
		 * @param   m   The model this controller's view is observing.
		 */
		public function GallaryController(m:Model) {
			// Set the model.
			super(m);
		}
		
		override public function currectMediaItem(event:Event = null):void
		{
			trace("GallaryController currectMediaItem event : "+event);
			model.setCurrectMediaItem(1);
			
			/*if(!_slideView.getIsAnimating())
			{
				model.setCurrentIndex(model.currentIndex +1);
			}*/	
		}

	}
}